<?php
if($act=="myaccount")
{
    $id     = gpc_getSession("AccountId");
}

if($act=="edit" || $act=="myaccount")
{
    $sql_select = "SELECT * FROM tblaccount WHERE iAccountId = $id";
    $rs=$dbsql->query($sql_select);
    $account = $dbsql->fetch_array($rs);
    if ($dbsql->num_rows($rs)==0)
    {
       page_transfer("Account Not Exists !","");
    }
}
?>